package com.zhouyer.study.bean;

import com.zhouyer.study.servic.ServiceApi;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

import java.security.Provider;

/**
 * 消费者组件
 *
 * @author zhouyao
 * @version 1.0
 * @date 2021/11/22 8:24 下午
 */
@Component
public class ConsumerComponent {

    @Reference
    private ServiceApi serviceApi;

    public String methodA(String name) {
        return serviceApi.methodA(name);
    }

    public String methodB(String name) {
        return serviceApi.methodB(name);
    }

    public String methodC(String name) {
        return serviceApi.methodC(name);
    }
}
